package cn.xiaopengstack.domain.activity.service.quota.rule.chain;

import cn.xiaopengstack.domain.activity.model.entity.ActionRuleMatterEntity;
import cn.xiaopengstack.domain.activity.service.quota.rule.factory.DefaultActivityActionChainFactory;

/**
 * @author jiangyangang
 * 责任链接口
 */
public interface IActionChain extends IActionArmory{

    /**
     * 执行责任链
     * @param ruleMatter 规则参数
     * @return 是否通过
     */
    boolean doChain(ActionRuleMatterEntity ruleMatter);

    /**
     * 获取规则
     * @return
     */
    DefaultActivityActionChainFactory.ActionEnum action();

}
